package com.woniu.repaircenter.service.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.woniu.repaircenter.models.dto.RepairCategoryDTO;
import com.woniu.repaircenter.models.param.SelectRepairCategoryParam;
import com.woniu.repaircenter.models.param.UpdateRepairCategoryParam;
import com.woniu.repaircenter.service.model.RepairCategory;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 * 维修类别表 服务类
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
public interface RepairCategoryService extends IService<RepairCategory> {

    Integer addRepairCategory(String categoryName, String adminName)throws Exception;

    PageInfo<RepairCategoryDTO> listRepairCategory(SelectRepairCategoryParam selectRepairCategoryParam)throws Exception;

    Integer updateCategory(UpdateRepairCategoryParam updateRepairCategoryParam, String adminName)throws Exception;

    List<RepairCategoryDTO> listAllRepairCategory()throws Exception;

    Integer updateStatus(Integer repairCategoryId, String adminName)throws Exception;

    String selectById(Long repairCategoryId)throws Exception;
}
